package com.community.utils;

import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.Map;

public class Repair {
    private static Map<String, String> repair = new HashMap<>();

    static {
        repair.put("101", "开锁换锁");
        repair.put("102", "管道疏通");
        repair.put("103", "电路灯具");
        repair.put("104", "水路卫浴");
    }

    public static String getRepairName(String repairId){

        return repair.getOrDefault(repairId, "该项目ID不存在");
    }
}
